package com.boot.dto;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class AssignPermissionDTO {
    @NotNull(message = "角色ID不能为空")
    private Long roleId;

    @NotEmpty(message = "至少选择一个权限")
    private List<Long> permissionIds;
}
